
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
    wx.config(<?php echo Request::get('js')->config(array('onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ'), false) ?>);

    wx.ready(function(){
        // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口
        wx.onMenuShareTimeline({
            title: '泛兰士专业为您',
            link:'{{ route('index') }}',
            imgUrl: "http://www.51finace.com/mobile/images/tz.jpg",
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
        // 获取“分享给朋友”按钮点击状态及自定义分享内容接口
        wx.onMenuShareAppMessage({
            title: '泛兰士专业为您',
            desc: '泛兰士为您提供专业资金解决方案',
            link:'{{ route('index') }}',
            imgUrl:'http://www.51finace.com/mobile/images/tz.jpg',
            type: 'link',
            success: function () {
            },
            cancel: function () {
            }
        });
        // 获取“分享到QQ”按钮点击状态及自定义分享内容接口
        wx.onMenuShareQQ({
            title: "泛兰士专业为您",
            desc: "泛兰士为您提供专业资金解决方案.",
            link:'{{ route('index') }}',
            imgUrl: "http://www.51finace.com/mobile/images/tz.jpg",
            success: function () {
            },
            cancel: function () {
            }
        });
    });

</script>

